package com.test.image.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @Author Moro
 * @Date 2021/10/31 23:43
 * @title ObjDTO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ObjDTO implements Serializable,Comparable<ObjDTO> {
    public static final long serialVersionUID = -32141212L;

    private Integer num;
    private Integer val;


    @Override
    public int compareTo(ObjDTO o) {
        return this.num.compareTo(o.getNum());
    }
}
